package com.yc.yyds.biz;

import com.yc.yyds.dao.UserQueryMoviesDao;

import java.util.List;
import java.util.Map;

public class QueryMovieBiz {

    UserQueryMoviesDao dao = new UserQueryMoviesDao();
    public Map<String, Object> queryMovie(String name, String type, String area, String date, int begin, int size) throws BizException {
        try {
            return  dao.queryMovies(name,type,area,date,begin,size);
        }catch (Exception e){
            e.printStackTrace();
            throw new BizException("查询失败,请联系管理员");
        }
    }

    public List<Map<String,Object>> tuijian() throws BizException {

        try {
            return dao.tuijian();
        }catch (Exception e){
            e.printStackTrace();
            throw new BizException("业务逻辑错误，请联系管理员");
        }
    }
}
